package com.osa.birthdaypie;

import android.os.Bundle;
import android.app.Activity;
import android.graphics.PixelFormat;
import android.view.Menu;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFormat(PixelFormat.RGBA_8888);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

	@Override
	protected void onPause() {
		Pie pie = (Pie) findViewById(R.id.pie_image);
		pie.pause();
		super.onPause();
	}

	@Override
	protected void onResume() {
		super.onResume();
		Pie pie = (Pie) findViewById(R.id.pie_image);
		pie.resume();
	}    
}
